// src/utils/icons.ts
import * as AllIcons from '@ant-design/icons-vue';

export type IconType = keyof typeof AllIcons;

export const IconMap = new Map<IconType, typeof AllIcons[IconType]>();

for (const [key, value] of Object.entries(AllIcons)) {
  if (typeof value === 'function') {
    IconMap.set(key as IconType, value as typeof AllIcons[IconType]);
  }
}
